package com.example.ljw.frescowallpaper.utils;

import android.widget.ImageView;

import com.example.ljw.frescowallpaper.bean.ConstellationBean;
import com.example.ljw.frescowallpaper.bean.MyFirstBean;
import com.example.ljw.frescowallpaper.bean.MySelectBean;
import com.example.ljw.frescowallpaper.bean.MyWallbean;
import com.example.ljw.frescowallpaper.bean.SortBean;
import com.example.ljw.frescowallpaper.bean.SortDetailsBean;
import com.example.ljw.frescowallpaper.config.URLConfig;

import java.util.Map;

import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import retrofit2.http.Url;
import rx.Observable;

/**
 * Created by LJW on 2016/11/16.
 */

public interface IMyRetrofit {

    @GET(URLConfig.URL_FIRST_INDIRECT)
    Observable<MyFirstBean> getFirstBeanObservable(@QueryMap Map<String,String> map);

    @GET(URLConfig.URL_FIRST_INDIRECT)
    Observable<MySelectBean> getSelectBeanObservable(@QueryMap Map<String,String> map);
    @GET()
    Observable<SortBean> getSortBeanObservable(@Url() String url);

    @GET(URLConfig.URL_CONSTELLATION_INDIRECT)
    Observable<ConstellationBean> getConstellationObservable(@Query("astro") String name);

    @GET(URLConfig.URL_SORT_DETAILS_INDIRECT)
    Observable<SortDetailsBean> getSortDeatailsObseravle(@QueryMap() Map<String,String> map );
}

